-- GENERATED SPELL FOR [Wing Commander Dabir'ee] --


function spell0_19409(pUnit, Event) --@Gateways Murket and Shaadraz,n/a--
pUnit:FullCastSpellOnTarget(33768,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19409', 564, 1)
end

function spell1_19409(pUnit, Event) --@Taxi - Hellfire Peninsula - Expedition Point to Shatter Point,n/a--
pUnit:FullCastSpellOnTarget(35069,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19409', 612, 1)
end

function Sorts_19409(pUnit, Event)
local choix_sorts_19409 = math.random(0, 1)
if choix_sorts_19409 == 0 then
pUnit:RegisterEvent('spell0_19409', 1, 1)
end
if choix_sorts_19409 == 1 then
pUnit:RegisterEvent('spell1_19409', 1, 1)
end
end

function mob19409_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19409', math.random(1500, 3000), 1)
end

function mob19409_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19409_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19409_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19409, 1, 'mob19409_Action')
RegisterUnitEvent(19409, 2, 'mob19409_Leave')
RegisterUnitEvent(19409, 3, 'mob19409_Kill')
RegisterUnitEvent(19409, 4, 'mob19409_Die')
